/**
 * 功能描述 表单
 */

define(function (require, exports, module){
	var Form = require("form");
	var instance = {
		initComponent: function (params,widget){
			$(".J-onCreditForm").html("");
            var onCreditForm=new Form({
				parentNode:".J-onCreditForm",
				show:false,
				model:{
					id:"onCreditForm",
					layout: "2_1",
					defaultButton : false,
					items:[{
						name:"company",
						label:"公司名称"
					},{
						name:"perName",
						label:"个人姓名"
					},{
						name:"phone",
						label:"联系方式"
					},{
						name:"onCreditMoney",
						label:"挂账金额"
					}]
				}
			});
			widget.set("onCreditForm", onCreditForm);
		}
	};
	module.exports = instance;
});